Skip to content

[7.x.x] Raise XPTY0004 if declare context item is not one item - #245

Open
Laurettta wants to merge 1 commit into
develop-7.x.xfrom
7.x.x/hotfix/declare-context-item-must-be-one-item
Open

Laurettta wants to merge 1 commit into
develop-7.x.xfrom
7.x.x/hotfix/declare-context-item-must-be-one-item

Conversation

@Laurettta

@Laurettta Laurettta commented Oct 30, 2026 •

Copy link
Copy Markdown

declare context item now raises XPTY0004 if the value is empty or has more than one item. Added a test for it.

Closes eXist-db/exist#4946

@cla-bot cla-bot Bot added the cla-signed label Oct 30, 2026
@codacy-production

Copy link
Copy Markdown

Not up to standards ⛔

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@Laurettta
Laurettta force-pushed the 7.x.x/hotfix/declare-context-item-must-be-one-item branch from 2ac2cc5 to df1ef43 Compare November 2, 2026 15:08

@adamretter adamretter left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small changes please

@Laurettta Laurettta changed the title [7.x.x] Raise XPTY0004 when declare context item is not given exactl… [7.x.x] Raise XPTY0004 if declare context item is not one item Nov 17, 2026
@Laurettta
Laurettta force-pushed the 7.x.x/hotfix/declare-context-item-must-be-one-item branch from df1ef43 to 148f10b Compare November 17, 2026 22:38
@Laurettta
Laurettta requested a review from adamretter November 18, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants